package com.lesso.lpq.sunflower.domain.repository;

import com.baomidou.mybatisplus.plugins.Page;
import com.lesso.lpq.sunflower.model.AttendanceRule;
import com.lesso.lpq.sunflower.pojo.dto.AttendanceRuleDTO;
import com.lesso.lpq.sunflower.pojo.dto.AttendanceRuleQueryDTO;
import com.lesso.lpq.sunflower.pojo.vo.AttendanceRuleVO;

/**
 * @ClassName : AttendanceRuleRepository
 * @Description :
 * @Author : 罗培棋
 * @Date: 2025-07-05 17:12
 */
public interface AttendanceRuleRepository {
    Long save(AttendanceRule attendanceRule);

    Page<AttendanceRuleVO> getPageList(AttendanceRuleQueryDTO dto);

    Page<AttendanceRuleVO> getCustomPageList(AttendanceRuleQueryDTO dto);

    void removeById(Long id);

    void updateById(AttendanceRuleDTO dto);

    AttendanceRuleVO getByRuleCode(String ruleCode);
}
